package cloud.shyidong.system.request;

import cloud.shyidong.core.request.SimpleInsertRequest;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 角色表添加请求
 * </p>
 *
 * @author syd
 * @since 2023-05-31 13:14:46
 */
@Data
public class SystemRoleInsertRequest extends SimpleInsertRequest {
    
    /**
     * 名称
     */
    @NotBlank(message = "缺少名称")
    private String name;
    
    /**
     *
     */
    @NotNull(message = "缺少排序")
    private Integer sortIndex;
    
    /**
     *
     */
    private String remark;
    
    /**
     * 菜单编号
     */
    private List<Long> menuIds;
    
    /**
     * 权限编号
     */
    private List<Long> functionIds;
    
}
